<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="949.43">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; color: #0018ea}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a91616}
span.s1 {font: 18.0px Helvetica}
span.s2 {color: #000000}
span.s3 {text-decoration: underline}
span.s4 {text-decoration: underline ; color: #0018ea}
span.s5 {font: 14.0px Helvetica}
span.s6 {color: #0013bc}
span.Apple-tab-span {white-space:pre}
</style>
</head>
<body>
<p class="p1"><span class="s1"><b>PVAna<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b></span><b>create FFT Analysis files.</b></p>
<p class="p2"><br></p>
<p class="p3"><span class="s2"><b>See also:</b> <a href="PV_PlayBuf.html"><span class="s3">PV_PlayBuf</span></a>, <a href="PV_BufRd.html"><span class="s3">PV_BufRd</span></a>, <a href="PV_BinPlayBuf.html"><span class="s3">PV_BinPlayBuf</span></a> and <a href="PV_BinBufRd.html"><span class="s3">PV_BinBufRd</span></a></span></p>
<p class="p2"><br></p>
<p class="p4"><b>Class Methods</b></p>
<p class="p5"><b><span class="Apple-tab-span">	</span></b></p>
<p class="p1"><b><span class="Apple-tab-span">	</span>*new(sfpath)</b></p>
<p class="p1"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>sfpath - the path for a mono sound file to analyze</b></p>
<p class="p6"><br></p>
<p class="p4"><b>Instance Methods</b></p>
<p class="p5"><br></p>
<p class="p1"><b><span class="Apple-tab-span">	</span>ana(filPath, fftSize, winType, hop)</b></p>
<p class="p1"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>filPath - </b>the path to save the analysis to</p>
<p class="p1"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>fftSize - </b>size of the FFT - should be a power of two (default: 2048)</p>
<p class="p1"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>winType - </b>the FFT window type (see <a href="SC://FFT"><span class="s4">FFT</span></a> - default is 1, Hann)</p>
<p class="p1"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>hop - </b>the amount of offset from one FFT analysis frame to the next, measured in multiples of the<span class="Apple-converted-space"> </span></p>
<p class="p1"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>analysis frame size.<span class="Apple-tab-span">	</span>Defaults to 0.25.</p>
<p class="p2"><span class="s5"><b><span class="Apple-tab-span">	</span></b></span><b><span class="Apple-tab-span">	</span></b></p>
<p class="p1"><b>Usage:</b></p>
<p class="p2"><br></p>
<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span>a = </span><span class="s6">PVAna</span><span class="s2">.new(</span>"sounds/a11wlk01.wav"<span class="s2">);</span></p>
<p class="p7"><span class="s2"><span class="Apple-tab-span">	</span>a.ana(</span>"sounds/a11wlk01.scpv"<span class="s2">, </span><span class="s6">2048</span><span class="s2">, </span><span class="s6">1</span><span class="s2">, </span><span class="s6">0.25</span><span class="s2">);</span></p>
</body>
</html>
